package com.sxhalo.fsms.mapper;

import com.sxhalo.fsms.domain.FactArea;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface FactAreaMapper {
    int deleteByPrimaryKey(Integer areaId);

    int insert(FactArea record);

    int insertSelective(FactArea record);

    FactArea selectByPrimaryKey(Integer areaId);

    int updateByPrimaryKeySelective(FactArea record);

    int updateByPrimaryKey(FactArea record);
    
    int getCount(@Param("where")String where);

    List<FactArea> findWhereList(@Param("where")String where, @Param("order")String order);

    List<FactArea> findPagerList(@Param("start")Integer start, @Param("length")Integer length, @Param("where")String where, @Param("order")String order);
    int getChildCount(@Param("where")String where, @Param("parentId")Integer parentId);
    List<FactArea> findChildPagerList(@Param("start")Integer start, @Param("length")Integer length, @Param("where")String where, @Param("order")String order, @Param("parentId")Integer parentId);

    String getAllParentNameByParentId(@Param("where")String where, @Param("parentId")Integer parentId);
}